package top.continew.admin.req;

import cn.shengchao.examstar.rpc.distribute.req.DistributeJmsYgBatchInviteChangeReq;
import cn.shengchao.examstar.rpc.wecom.req.CpUserInviteJmsYgChangeRto;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * @program: examstar-manger-api
 * @description: 员工切换请求
 * @author: Xiong weiqiang
 * @create: 2025-05-13 19:58
 */
@Data
public class QywxJmsYgBatchInviteChangeRto {
    @NotNull(message = "被替换员工用户不能为空")
    private Long userId;
    @NotNull(message = "替代员工用户不能为空")
    private Long replaceUserId;
    private String replaceCpUserId;
    public CpUserInviteJmsYgChangeRto toReq(){
        CpUserInviteJmsYgChangeRto cpUserInviteJmsYgChangeRto = new CpUserInviteJmsYgChangeRto();
        cpUserInviteJmsYgChangeRto.setUserId(this.getUserId());
        cpUserInviteJmsYgChangeRto.setReplaceUserId(this.getReplaceUserId());
        cpUserInviteJmsYgChangeRto.setServiceCpUserId(this.getReplaceCpUserId());
        return cpUserInviteJmsYgChangeRto;
    }
}